import Cookies from 'js-cookie'

const mutations = {
  TOGGLE_STATE (state, name){
    state[name] = !state[name]
  },
  LOGOUT_STATE (state) {
    state.isLogin = false
    Cookies.remove('ACCESS_TOKEN')
  },
  SET_AVANTAR (state, avantar) {
    state.avantar = avantar
  },
  SET_INNER_HEIGHT(state, height) {
    state.innerHeight = height
  }
}

export default mutations
